VPATH = ./include:./module

objects = server.o passiveTCP.o passivesock.o errexit.o device.o \
		  motor_ctrl.o test.o io_ctrl.o

all : $(objects)
	cc -o server $(objects) -lwiringPi

device.o : device.c device.h
motor_ctrl.o : motor_ctrl.c motor_ctrl.h
test.o : test.c test.h
io_ctrl.o : io_ctrl.c io_ctrl.h

.PHONY : clean
clean:
	rm server $(objects)
